package com.heima.green.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@RestController
public class TestController {

    @PostMapping("test/text")
    public Map testText(String text) throws Exception {
        return null;
    }

    @PostMapping("test/image")
    public Map testText(MultipartFile file) throws Exception {
        return null;
    }

}
